<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:99:"D:\phpStudy2018\PHPTutorial\WWW\xbs22\supermarket\public/../application/index\view\login\user_list.html";i:1540101407;s:84:"D:\phpStudy2018\PHPTutorial\WWW\xbs22\supermarket\application\index\view\layout.html";i:1540197846;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>超市 </title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="icon" type="image/png" href="/static/images/favicon.png">
	<link href="/static/css/amazeui.min.css" rel="stylesheet" type="text/css" />
	<link href="/static/css/style.css" rel="stylesheet" type="text/css" />
	<script src="/static/js/jquery-1.10.2.min.js"></script>
	<script src="/static/js/time.js"></script>
	<script src="/static/js/popup.mini.js"></script>
	<link rel="stylesheet" href="/static/layui/css/layui.css" />
	<script src="/static/layui/layui.js"></script>
</head>
<body style="background: #f6f6f6;">

<header data-am-widget="header" class="am-header am-header-default sq-head ">
	<div class="am-header-left am-header-nav">
		<a href="javascript:history.back()" class="">
			<i class="am-icon-chevron-left"></i>
		</a>
	</div>
	<h1 class="am-header-title">
		<a href="" class="">登录</a>
	</h1>
</header>
<div style="height: 49px;"></div>
<!--<div class="login-logo">
	<img src="images/logo.png" />
</div>-->
<div style="height: 3rem;"></div>
<form class="layui-form" action="">
	<input type="text" name="phone" id="mobile" placeholder="请输入手机号" value="15674869541" class="login-name">
	<input type="password" name="password" id="password" placeholder="请输入密码" value="123123123" class="login-password">
	<button class="login-btn" lay-submit lay-filter="login">登陆</button>
</form>
<div class="agree">
	<a href="<?php echo url('index/Reg/index'); ?>">免费注册</a>
	<a href="forgetpassword.html" class="forget">忘记密码？</a>
</div>
<div class="line"></div>
<div class="line-text">第三方账号登录</div>
<ul class="second-login">
	<li><a href=""><img src="/static/images/wxlogin.png"/></a></li>
	<li><a href="<?php echo url('index/Login/qqLogin'); ?>"><img src="/static/images/qqlogin.png"/></a></li>
	<li><a href=""><img src="/static/images/sinalog.png"/></a></li>
</ul>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;
        //监听提交
        form.on('submit(login)', function(data){
            $.post("<?php echo url('index/Login/checkLogin'); ?>",data.field, function(res) {
				if (res.code==1){
                    layer.alert(res.msg, {icon: 1},function (){
                        location.href=("<?php echo url('index/My/index'); ?>");
                    });
				}else{
                    layer.msg(res.msg, {icon: 9},function () {
                    });
				}
            });
            return false;
        });
    });
</script>
<div style="height: 55px;"></div>
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default sq-foot am-no-layout" id="">
	<ul class="am-navbar-nav am-cf am-avg-sm-5">
		<li>
			<a href="<?php echo url('index/Index/index'); ?>" class="<?php echo request()->controller()=='Index' ? 'curr':''; ?>">
				<span class="am-icon-home"></span>
				<span class="am-navbar-label">首页</span>
			</a>
		</li>
		<li>
			<a href="message.html" class="">
				<span class="am-icon-comments"></span>
				<span class="am-navbar-label">动态</span>
			</a>
		</li>
		<li>
			<a href="<?php echo url('index/ShopingCar/index'); ?>" class="<?php echo request()->controller()=='ShopingCar' ? 'curr':''; ?>">
				<span class="am-icon-shopping-cart"></span>
				<span class="am-navbar-label">购物车</span>
			</a>
		</li>
		<li>
			<a href="allorder.html" class="">
				<span class="am-icon-file-text"></span>
				<span class="am-navbar-label">订单</span>
			</a>
		</li>

		<li>
			<a href="<?php echo url('index/My/index'); ?>" class="<?php echo request()->controller()=='My' ? 'curr':''; ?>">
				<span class="am-icon-user"></span>
				<span class="am-navbar-label">我的</span>
			</a>
		</li>
	</ul>
</div>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/amazeui.min.js"></script>
</body>
</html>